import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 引入图标
import './styles/toutiao-icon.css'
// vant组件库
import Vant from 'vant'
import 'vant/lib/index.css'
import './styles/index.less'
// 使用 lib-flexible 动态设置 REM 基准值（html 标签的字体大小）
import 'amfe-flexible'
import dayjs from 'dayjs'
import 'dayjs/locale/zh-cn'
// 引入样式
import '@/views/Detail/github-markdown.css'
var relativeTime = require('dayjs/plugin/relativeTime')
dayjs.extend(relativeTime) // ES 2015
dayjs.locale('zh-cn')
Vue.use(Vant)
Vue.config.productionTip = false
// 过滤器
Vue.filter('relativeTime', (val) => {
  return dayjs().to(val)
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
